import requests
response = requests.get("http://www.baidu.com")
response.encoding="utf8"
print("响应状态码为：",response.status_code)
print("url:",response.url)
print("响应头数据：",response.headers)
print("Conten-type:",response.headers.get("Content-Type"))
print("响应字符编码：",response.encoding)
print("字节形式的响应内容：",response.content)
print("文本形式的响应内容",response.text)
